﻿using UnityEngine;
using System;

namespace TC
{
    public enum hiEnum
    {
        hi,
        hey,
        hello,
    }

    [Menu("Test/SpecialNode")]
    [Description("测试：基础类型外的其他数据类型")]
    public class SpecialNode : FunctionNode 
    {
        private ValueInput<Color> color;
        private ValueInput<AnimationCurve> curve;
        private ValueInput<hiEnum> enumIn;
        private ValueInput<Rect> rect;
        private ValueInput<Texture2D> texture2d;
        private ValueInput<GameObject> gameObject;
        private ValueInput<KeyCode> keycode;

        public override void OnCreate()
        {
            base.OnCreate();
            color = AddValueInPort<Color>("color");
            curve = AddValueInPort<AnimationCurve>("curve");
            enumIn = AddValueInPort<hiEnum>("enumIn");
            rect = AddValueInPort<Rect>("rect");
            texture2d = AddValueInPort<Texture2D>("texture2d");
            gameObject = AddValueInPort<GameObject>("gameObject");
            keycode = AddValueInPort<KeyCode>("keycode");
        }
    }
}
